package org.chen.aao.ai.feign;

import org.chen.aao.ai.feign.fallback.SubsFeignFallback;
import org.chen.aao.common.response.Result;
import org.chen.aao.common.subscription.dto.SubscriptionStatusResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "service-subs" , fallback = SubsFeignFallback.class)
public interface SubsServiceClient {
    @GetMapping("/subscription/status/{id}")
    Result<SubscriptionStatusResponse> getSubscriptionStatusById(@PathVariable("id") Long userId);
}
